package sanshui.system.trade.common;

public class TradeType {
    public enum DelFlg{
        EXIT("0"),
        DELETE("1");

        String code;
        DelFlg(String code){
            this.code = code;
        }
        public String getCode() {
            return code;
        }
    }

    public enum WorkerOpStatus{
        START, STOP
    }

    public enum WorkerStatus{
        INIT(1, "INIT"),
        IN(2, "IN"),
        END(3, "END");
        Integer index;
        String code;

        WorkerStatus(Integer index, String code){
            this.index = index;
            this.code = code;
        }
        public Integer getIndex() {
            return index;
        }
        public String getCode() {
            return code;
        }

    }

    public enum AccountType{
        VIRTUAL, // 虚拟账户（用于回测，不需要展示）
        TEST, // 测试账户（用于测试）
        TRUTH // 真实账户
    }

    public enum AccountStatus{
        INIT(1, "INIT"),
        IN(2, "IN"),
        END(3, "END");
        Integer index;
        String code;

        AccountStatus(Integer index, String code){
            this.index = index;
            this.code = code;
        }
        public Integer getIndex() {
            return index;
        }
        public String getCode() {
            return code;
        }

    }
}
